body {
  margin: 0;
  padding: 0;
}

body .container {
  height: 400px;
  width: 600px;
  background: #999;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

body .container .contain {
  width: 3600px;
  height: 100%;
  position: relative;
  left: 0;
}

body .container .contain img {
  height: 100%;
  width: 600px;
  float: left;
}

body .container .dot-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  max-height: 30px;
}

body .container .dot-container .dot {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #999;
  margin-right: 10px;
  float: left;
  text-align: center;
  color: white;
  cursor: pointer;
}

body .container .dot-container .active {
  background-color: red;
}

body .container .up, body .container .down {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  text-align: center;
  line-height: 40px;
  color: white;
  cursor: pointer;
}

body .container .up:hover, body .container .down:hover {
  background: black;
}

body .container .down {
  right: 0;
}
